import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqEntityIdHelper } from "./SeqEntityIdHelper";
import { SPublicNotice } from "./SPublicNotice";
type int = number;
//class SCrossGuildWarPublicNotice
    
    export  class SCrossGuildWarPublicNotice extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossGuildWarPublicNotice();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqEntityIdHelper.write(arg1, this.guildIds);
            this.notice.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildIds = SeqEntityIdHelper.read(arg1);
            this.notice = new SPublicNotice();
            this.notice.__read(arg1);
            return;
        }

        public /* const */_type: int=908;

        public /* var */guildIds: Array<any>;

        public /* var */notice: SPublicNotice;

        public static /* var */_regist: SCrossGuildWarPublicNotice;
    }

            SCrossGuildWarPublicNotice._regist = new SCrossGuildWarPublicNotice(true);
        